package com.liry.security.controller;

import javax.annotation.security.DenyAll;
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ALI
 * @since 2023/6/15
 */
@RestController
@RequestMapping("/method3")
public class MethodController3 {

    @GetMapping("/get1")
    public String method1() {
        return "get1";
    }

    @GetMapping("/get2")
    public String method2() {
        return "get2";
    }

}
